<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

switch($route->getAdminAction())
{
	case "list": require_once CABINET.DS."_news".DS."list.php"; break;
	case "add": require_once CABINET.DS."_news".DS."add.php"; break;
	case "edit": require_once CABINET.DS."_news".DS."edit.php"; break;
	case "delete": require_once CABINET.DS."_news".DS."delete.php"; break;
	case "preview": require_once CABINET.DS."_news".DS."preview.php"; break;
	
	case "upload": require_once CABINET.DS."_news".DS."upload.php"; break;
	case "delete_img": require_once CABINET.DS."_news".DS."delete_img.php"; break;

	default: goToPage("/cabinet/news/list");
}

?>